package com.app.teaware.bean;


import com.alibaba.fastjson.annotation.JSONField;

import java.util.ArrayList;

public class WorkListBean extends BaseListBeanXF {



    private ArrayList<WorkListData> records = new ArrayList<WorkListData>();

    public ArrayList<WorkListData> getList() {
        return records;
    }

    public void setList(ArrayList<WorkListData> list) {
        this.records = list;
    }

    @JSONField(serialize = false)
    public void addListBean(WorkListBean listbean) {
        if (listbean == null)
            return;
        if (this.getCurrent() == INIT_PAGE) {
            setList(listbean.getList());
        } else {
            if (records == null)
                records = new ArrayList<WorkListData>();
            records.addAll(listbean.getList());
        }
        setListBeanData(listbean);
    }

}
